replace Bundle with the new AbstractBundle class #1514
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Move the bundle from the old "Bundle" to the new "AbstractBundle" system following the best practices outlines in https://symfony.com/doc/current/bundles/best_practices.html
Nothing to see here yet...
see - symfony/symfony-docs#19793
I'm not sure if we should do this yet... Maker has a "leg up" on the other
symfony/*bundles because we're a bit bleeding edge. Our minimumsymfony/*is6.4- but by merging this PR, we would be breaking away from say,FrameworkBundlethat still uses the legacyBundleclass...On the flip side, if we do press forward with this PR - we could reference this change somehow in the docs to show others how we "converted" to the new simplification strategy.
Pinging @nicolas-grekas @javiereguiluz & @yceruto This isn't review ready yet, but feedback on if we should press forward with this would be awesome.
Merge blockers:
src/DependencyInjection/CompilerPass/*figure out if these should live here still - or if there is a better way...the bundled php-cs-fixer used by the template linter was replaced with a shimsrc/Resources/bin- This is our "bundled" php-cs-fixer, it needs a new home (not intended to be directly called by the user...)src/Resources/config/php-cs-fixer.config.php- used by our internal php-cs-fixer when runningmake:*- make sure this path isnt hard coded.. If it is, fix it to use the newconfig/php-cs-fixer.config.phppath.src/Resources/doc->docs/This will done in a separate PR as it will create a messy diff...src/Resources/help- figure out a home for these files - theAbstractMaker? (or another parent class) needs to be updated to point the command to the new help locationThis will done in a separate PR as it will create a messy diff...src/Resources/Skeleton- our "templates" need a new home. These feel like they should live insrcmaybe something likesrc/Skeleton? hmm....